package cn.tedu.dfxd.mapper;

import cn.tedu.dfxd.entity.Item;
import cn.tedu.dfxd.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author DBX
 * @effect
 * @date 2021/10/21/22:06
 */
@Mapper
public interface UserMapper {
    @Select("select * from user where username = #{name}")
    User check(String name);

    @Select("select * from user where stamp =1  ")
    List<User> myTeam();

    @Select("select * from user where id = #{id}")
    User findIdUser(Integer id);
}
